import { Expose } from 'class-transformer';

export class UserDto {
  @Expose() uid: string;
  @Expose() name: string;
  @Expose() email: string;
  @Expose() password: string;
  @Expose() avatar: string | null;
  @Expose() sex: string | null;
  @Expose({ name: 'created_at' }) createdAt: Date | null;
  @Expose({ name: 'updated_at' }) updatedAt: Date | null;
}

export class UserAccount {
  @Expose() uid: string;
  @Expose() name: string;
  @Expose() avatar: string | null;
}